/**
 * Copyright (C) 2018-2022
 * All rights reserved, Designed By www.yixiang.co
 */
package co.yixiang.yshop.framework.common.constant;

/**
 * 商城统一常量
 *
 * @author hupeng
 * @since 2020-02-27
 */
public interface ShopConstants {

    /**
     * 订单自动取消时间（分钟）
     */
    long ORDER_OUTTIME_UNPAY = 30;
    /**
     * 订单自动收货时间（天）
     */
    long ORDER_OUTTIME_UNCONFIRM = 7;
    /**
     * 订单确认收货之后的最大可售后时间（天）
     */
    long ORDER_MAX_AFTER_SALE_TIME = 7;
    /**
     * 收货之后几天内可以评价
     */
    long ORDER_COMMENT_MAX_TIME = 7;

    /**
     * 提交售后之后x天自动通过售后
     */
    long AFTER_SALES_ORDER_OUTTIME_UNCONFIRM = 7;
    /**
     * 用于同意售后之后，X天,检查用户没有提交退货信息
     */
    long AFTERSALESORDER_USER_NO_RETURN_GOODS = 7;
    /**
     * 用户填写退货信息后 x天，系统自动确认售后
     */
    long AFTERSALESORDER_USER_RETURN_GOODS_CONFIRM = 7;
    /**
     * redis订单未付款key
     */
    String REDIS_ORDER_OUTTIME_UNPAY_QUEUE = "order-unpay-cancel-queue";
    /**
     * redis订单收货key
     */
    String REDIS_ORDER_OUTTIME_UNCONFIRM = "order-unconfirm-queue";

    /**
     * redis售后订单，自动同意售后
     */
    String REDIS_AFTERSALESORDER_UNCONFIRM = "order-aftersalesorder-unconfirm-queue";
    /**
     * 用于同意售后之后，检查用户有没有提交退货信息（快提单号）
     */
    String REDIS_AFTERSALESORDER_USER_NO_RETURN_GOODS = "order-aftersalesorder-user_noreturn-goods-queue";
    /**
     * *用户寄回商品后多少天自动通过售后,复用 REDIS_AFTERSALESORDER_UNCONFIRM
     */
//    String REDIS_AFTERSALESORDER_USER_NO_RETURN_GOODS = "order-aftersalesorder-user_noreturn-goods-queue";

    /**
     * redis拼团key
     */
    String REDIS_PINK_CANCEL_KEY = "pink:cancel:";

    /**
     * 微信支付service
     */
    String YSHOP_WEIXIN_PAY_SERVICE = "yshop_weixin_pay_service";

    /**
     * 微信支付小程序service
     */
    String YSHOP_WEIXIN_MINI_PAY_SERVICE = "yshop_weixin_mini_pay_service";

    /**
     * 微信支付app service
     */
    String YSHOP_WEIXIN_APP_PAY_SERVICE = "yshop_weixin_app_pay_service";

    /**
     * 微信公众号service
     */
    String YSHOP_WEIXIN_MP_SERVICE = "yshop_weixin_mp_service";
    /**
     * 微信小程序service
     */
    String YSHOP_WEIXIN_MA_SERVICE = "yshop_weixin_ma_service";

    /**
     * 商城默认密码
     */
    String YSHOP_DEFAULT_PWD = "123456";

    /**
     * 商城默认注册图片
     */
    String YSHOP_DEFAULT_AVATAR = "https://image.dayouqiantu.cn/5e79f6cfd33b6.png";

    /**
     * 腾讯地图地址解析
     */
    String QQ_MAP_URL = "https://apis.map.qq.com/ws/geocoder/v1/";

    /**
     * redis首页键
     */
    String YSHOP_REDIS_INDEX_KEY = "yshop:index_data";

    /**
     * 配置列表缓存
     */
    String YSHOP_REDIS_CONFIG_DATAS = "yshop:config_datas";

    /**
     * 充值方案
     */
    String YSHOP_RECHARGE_PRICE_WAYS = "yshop_recharge_price_ways";
    /**
     * 首页banner
     */
    String YSHOP_HOME_BANNER = "yshop_home_banner";
    /**
     * 首页菜单
     */
    String YSHOP_HOME_MENUS = "yshop_home_menus";
    /**
     * 首页滚动新闻
     */
    String YSHOP_HOME_ROLL_NEWS = "yshop_home_roll_news";
    /**
     * 热门搜索
     */
    String YSHOP_HOT_SEARCH = "yshop_hot_search";
    /**
     * 个人中心菜单
     */
    String YSHOP_MY_MENUES = "yshop_my_menus";
    /**
     * 秒杀时间段
     */
    String YSHOP_SECKILL_TIME = "yshop_seckill_time";
    /**
     * 签到天数
     */
    String YSHOP_SIGN_DAY_NUM = "yshop_sign_day_num";

    /**
     * 打印机配置
     */
    String YSHOP_ORDER_PRINT_COUNT = "order_print_count";
    /**
     * 飞蛾用户信息
     */
    String YSHOP_FEI_E_USER = "fei_e_user";
    /**
     * 飞蛾用户密钥
     */
    String YSHOP_FEI_E_UKEY = "fei_e_ukey";

    /**
     * 打印机配置
     */
    String YSHOP_ORDER_PRINT_COUNT_DETAIL = "order_print_count_detail";

    /**
     * 短信验证码长度
     */
    int YSHOP_SMS_SIZE = 6;

    /**
     * 短信缓存时间
     */
    long YSHOP_SMS_REDIS_TIME = 600L;

    //零标识
    String YSHOP_ZERO = "0";

    //业务标识标识
    String YSHOP_ONE = "1";

    //目前完成任务数量是3
    int TASK_FINISH_COUNT = 3;

    int YSHOP_ONE_NUM = 1;

    String YSHOP_ORDER_CACHE_KEY = "yshop:order";

    String YSHOP_ORDER_SALE_STATUS_KEY = "yshop:order:sale:status";

    long YSHOP_ORDER_CACHE_TIME = 3600L;

    String WECHAT_MENUS = "wechat_menus";

    String YSHOP_EXPRESS_SERVICE = "yshop_express_service";

    String YSHOP_REDIS_SYS_CITY_KEY = "yshop:city_list";

    String YSHOP_REDIS_CITY_KEY = "yshop:city";

    String YSHOP_APP_LOGIN_USER = "app-online-token:";

    String YSHOP_WECHAT_PUSH_REMARK = "yshop为您服务！";

    String DEFAULT_UNI_H5_URL = "https://h5.yixiang.co";

    String YSHOP_MINI_SESSION_KET = "yshop:session_key:";

    /**
     * 公众号二维码
     */
    String WECHAT_FOLLOW_IMG = "wechat_follow_img";
    /**
     * 后台api地址
     */
    String ADMIN_API_URL = "admin_api_url";

    //快递查询接口Logistic
    String KDNIAO_LOGISTIC_QUERY = "https://api.kdniao.com/Ebusiness/EbusinessOrderHandle.aspx";

    /**
     * redis营销活动状态变更key
     */
    String CAMPAIGN_CHANGE = "campaign-change-queue";

    /**
     * redis广告弹窗状态变更key
     */
    String POPUP_CHANGE = "popup-change-queue";

    /**
     * redis拼团状态变更key
     */
    String TEAMWORK_CHANGE = "teamwork-change-queue";

    String DAY_FORMAT_STR = "yyyy-MM-dd";

    /**
     * redis 订单收货后不可关闭售后 key
     */
    String CLOSE_AFTER_SALE_KEY = "close-after-sale-key";

}
